QT += widgets

TEMPLATE = lib

# 导出宏定义
DEFINES += SHAREA_LIBRARY

CONFIG +=shared  c++17

# 库版本
VERSION = 1.0.0
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


TARGET = shareA



SOURCES += \
    mybutton.cpp \
    sharea.cpp

HEADERS += \
    mybutton.h \
    shareA_global.h \
    sharea.h

# Default rules for deployment.
# unix {
#     target.path = /usr/lib
# }
# !isEmpty(target.path): INSTALLS += target


# 安装配置 安装到 Qt 系统路径（全局） 让 Qt Designer、其他工程自动找到插件/库
# target.path = $$[QT_INSTALL_LIBS]
# headers.path = $$[QT_INSTALL_HEADERS]/MyWidgets
# headers.files = $$HEADERS
# INSTALLS += target headers

# 输出目录   仅控制构建目录结构（本地） 输出到你指定目录，不安装到 Qt 系统
DESTDIR = $$PWD/../plugins/shareA
# OBJECTS_DIR = $$DESTDIR/.obj/pluginA
# MOC_DIR = $$DESTDIR/.moc/pluginA
# RCC_DIR = $$DESTDIR/.rcc/pluginA

INCLUDEPATH += $$PWD #因为需要加载头文件
INCLUDEPATH += $$PWD/include  #这里放插件依赖的插件

message("target.path==$$target.path")
message("target.path==$$headers.path")
